<!-- #section:basics/sidebar -->
<div id="sidebar" class="sidebar                  responsive">
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed')
        } catch (e) {
        }
    </script>

    <!--    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
            <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                <button class="btn btn-success">
                    <i class="ace-icon fa fa-signal"></i>
                </button>
    
                <button class="btn btn-info">
                    <i class="ace-icon fa fa-pencil"></i>
                </button>
    
                 #section:basics/sidebar.layout.shortcuts 
                <button class="btn btn-warning">
                    <i class="ace-icon fa fa-users"></i>
                </button>
    
                <button class="btn btn-danger">
                    <i class="ace-icon fa fa-cogs"></i>
                </button>
    
                 /section:basics/sidebar.layout.shortcuts 
            </div>
    
            <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>
    
                <span class="btn btn-info"></span>
    
                <span class="btn btn-warning"></span>
    
                <span class="btn btn-danger"></span>
            </div>
        </div> /.sidebar-shortcuts -->
    <?php
    $container = new \Zend\Session\Container('admin');
    $admin = $container->admin;
    ?>
    <ul class="nav nav-list" style="top: 0px;">
        <li class="open hsub">
            <a class="dropdown-toggle" href="#">
                <i class="menu-icon fa fa-list"></i>
                <span class="menu-text">内容管理</span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <b class="arrow"></b>

            <ul class="submenu">
                <li class="">
                    <a href="/admin/content/index/">
                        <i class="menu-icon fa fa-caret-right"></i>
                        内容列表
                    </a>
                    <b class="arrow"></b>
                </li>
                <li class="">
                    <a href="/admin/category/index/">
                        <i class="menu-icon fa fa-caret-right"></i>
                        分类列表
                    </a>
                    <b class="arrow"></b>
                </li>
                <li class="">
                    <a href="/admin/guestbook/index/">
                        <i class="menu-icon fa fa-caret-right"></i>
                        留言列表
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
        </li>

        <li class="open hsub">
            <a class="dropdown-toggle" href="#">
                <i class="menu-icon fa fa-cog"></i>
                <span class="menu-text">管理员</span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <b class="arrow"></b>

            <ul class="submenu">
                <li class="">
                    <a href="/admin/admin/index/">
                        <i class="menu-icon fa fa-caret-right"></i>
                        管理员列表
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
        </li>
    </ul>
    <?php
    preg_match("#/admin/[a-zA-Z0-9]+/([a-zA-Z0-9]+)/#i", $_SERVER['REQUEST_URI'], $matches);
    $uri = "/admin/content/index/";
    if ($matches) {
        $uri = str_replace($matches[1], "index", $matches[0]);
    }
    ?>
    <script type="text/javascript">
        var uri = "<?php echo $uri; ?>";
        $("[href='" + uri + "']").parent("li").addClass("active");
        $("[href='" + uri + "']").parent("li").parent().parent("li").addClass("active");
    </script>

    <!-- #section:basics/sidebar.layout.minimize -->
    <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
        <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left"
           data-icon2="ace-icon fa fa-angle-double-right"></i>
    </div>

    <!-- /section:basics/sidebar.layout.minimize -->
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>
</div>

<!-- /section:basics/sidebar -->
